package com.cx.meta.exception;

/**
 * @author flysand
 * @package com.cx.meta.exception
 * @date 2021-11-12 01:34
 * @des ErrorResponse:
 */
public class ErrorResponse {
    private String code;
    private String message;
    private Object data;

    public ErrorResponse() {
        this.code = "0";
        this.message = "success";
    }

    public ErrorResponse(CxErrorCode errorCode) {
        this.code = errorCode.getErrCode();
        this.message = errorCode.getErrMsg();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
